package net.ewon.avatar.agent.impl;

import java.io.File;

import net.ewon.avatar.common.util.FilePathUtils;

import org.apache.commons.lang3.StringUtils;

public class AvatarPackageLinuxRepo extends AvatarPackageAbstractRepo{
	 
	public AvatarPackageLinuxRepo(String baseLocation) {
		super(baseLocation);
	}
	
	protected void normalize() {
		this.baseLocation = FilePathUtils.normalizeLinux(this.baseLocation);
	}
 
	public String getAbsolutePackageFilePath(String fileName) {
		return baseLocation + File.separator
				+ StringUtils.replace(fileName, "\\\\", File.separator);
	}
  
}
